package com.enqualcomm.kids.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by yinzhiqun on 2016/3/9.
 */
public class VoiceSchedule implements Parcelable{
    public String datetime;
    public String content;
    public String filePath;
    public String id;


    public VoiceSchedule(String datetime, String content) {
        this.datetime = datetime;
        this.content = content;
    }

    public VoiceSchedule(String datetime, String content,String id) {
        this.datetime = datetime;
        this.content = content;
        this.id = id;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(datetime);
        parcel.writeString(content);
    }

    public static final Creator<VoiceSchedule> CREATOR = new Creator<VoiceSchedule>() {
        @Override
        public VoiceSchedule createFromParcel(Parcel parcel) {
            String datetime = parcel.readString();
            String content = parcel.readString();
            return new VoiceSchedule(datetime,content);
        }

        @Override
        public VoiceSchedule[] newArray(int i) {
            return new VoiceSchedule[0];
        }
    };
}
